import request from '@/utils/request'

// 推荐活动（邀新活动）
// 一个用户的邀请记录	POST ac/adm/v1/recommend/one/user/record/{customerId}
export function getCustomerInviteList(id,params) {
  return request({
    url: `/adm/v1/recommend/one/user/record/${id}`,
    method: 'get',
    params,
  })
}
// 所有邀请人的记录	GET ac/adm/v1/recommend/record
export function getAllCustomersInviteList(params) {
  return request({
    url: `/adm/v1/recommend/record`,
    method: 'get',
    params,
  })
}
// 设置推荐参数	POST ac/adm/v1/recommend/add/set
export function setInviteConfig(data) {
  return request({
    url: `/adm/v1/recommend/add/set`,
    method: 'post',
    data,
  })
}
// 推荐配置详情	GET ac/adm/v1/recommend/details
export function getInviteConfigDetail() {
  return request({
    url: `/adm/v1/recommend/details/set`,
    method: 'get',
  })
}